
import type { NoticeInfo } from "@/types/views/notice";
import request from "./request";
import { Controller } from '@/api/request'
export const noticeListApi = () => request<any, ApiRes<NoticeInfo[]>>({
    url: `${Controller.friendship}/request_list`
});

export const agreeApi = (id: number) => request<any, ApiRes<any>>({
    url: `${Controller.friendship}/agree/${id}`
})
export const rejectApi = (id: number) => request<any, ApiRes<any>>({
    url: `${Controller.friendship}/reject/${id}`
})
